import java.util.Comparator;


public class MinTimeInPrisonComparator implements Comparator<Chromosome> {
	
	public int compare(Chromosome arg0, Chromosome arg1) {
		if(arg0.timeInPrison < arg1.timeInPrison){
			return -1;
		}
		else if(arg0.timeInPrison > arg1.timeInPrison){
			return 1;
		}
		else{
			return 0;
		}
	}
}
